package com.itheima.api.client;


import com.itheima.common.domain.BlogPageQuery;
import com.itheima.common.domain.PageResDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "blog-web",contextId = "bolgWeb")
public interface BlogClient {
    @PostMapping("/web/owner/blog/blogs")
     PageResDto queryBlogList(@RequestBody BlogPageQuery pageQuery);

    @DeleteMapping("/web/owner/blog/{blogId}")
     void deleteBlog(@PathVariable("blogId")Integer blogId);
    @GetMapping("/web/owner/blog/queryBlog")
    List queryBlogByCategoryId(@RequestParam("ids") List<Integer> ids);
}
